www.gusucode.com > PHP响应式投票系统 v1.0PHP源码程序 > PHP响应式投票系统 v1.0/xystpxt_v1.0/xystpxt_v1.0/model/mx_content.php
<?php class mx_content extends spModel { var $pk="ct_id"; var $table="mxszpt_content"; var $verifier_vote=array( "rules"=>array( 'ct_type'=>array( 'notnull'=>TRUE, ), 'ct_images'=>array( 'notnull'=>TRUE, ), 'ct_name'=>array( 'notnull'=>TRUE, ), 'ct_content'=>array( 'notnull'=>TRUE, ), ), "messages"=>array( 'ct_type'=>array( 'notnull'=>"分类不能为空!", ), 'ct_images'=>array( 'notnull'=>"图片不能为空!", ), 'ct_name'=>array( 'notnull'=>"名称不能为空!", ), 'ct_content'=>array( 'notnull'=>"描述不能为空!", ), ), ); } ?>